
<?php if($this->models->count() > 0): ?>

    <?php $i = 1 ?>

    <?php foreach($this->models AS $HL): ?>

        <?php $url = 'http://' . str_replace('http://', '', $this->escape($HL->link)) ?>

        <div class="highlight highlight-col-<?php echo $i ?>">

            <?php if(is_file($HL->image)): ?>
                <a href="<?php echo $url ?>"><img class="highlight" src="WSB/design/x.gif" style="background-image:url(<?php echo $HL->image ?>)" width="218" height="282" alt="" /></a>
            <?php endif; ?>

            <a href="<?php echo $url ?>" class="text1"><?php echo $HL->text1 ?></a>
            <a href="<?php echo $url ?>" class="text2"><?php echo nl2br($HL->text2) ?></a>

        </div>

        <?php $i++; $i = ($i > 3) ? 1 : $i; ?>

    <?php endforeach; ?>

    <div style="clear:both"></div>

<?php endif; ?>
